package com.github.baichuan.application.scaffold.rest.dto.application;

import com.github.baichuan.application.scaffold.rest.jpa.application.ApplicationSpecification;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;

@Schema(title = "应用查询条件")
@Getter
public class ApplicationQueryCriteria {
    @Schema(title = "应用域")
    private String realmId;

    public ApplicationSpecification specification(){
        return ApplicationSpecification.builder()
                .realmId(realmId)
                .build();
    }
}
